<template>
	<view class="cancel_box">
		<view class="cancel">
			<uni-icons type="info-filled" :size="60" color="#E11B29"></uni-icons>
			<text>注销 {{mobile.substr(0,3) + "****" + mobile.substr(7)}} 绑定的账号</text>
		</view>
		<view class="btn">
			<text>点击【下一步】即代表您已经同意<i @click="toRich">《用户注销协议》</i></text>
			<view @click="toCancel">下一步</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mobile:'',
			}
		},
		methods: {
			goBack(){ uni.navigateBack() },
			toRich(){
				uni.navigateTo({
					url:'/pages/setting/policy?type=logout'
				})
			},
			toCancel(){
				uni.navigateTo({
					url:'/pages/setting/cancelCode'
				})
			},
		},
		onLoad() {
			this.mobile = uni.getStorageSync('store').mobile
		}
	}
</script>

<style lang="scss" scoped>
	.cancel_box {
		display: flex;
		align-items: center;
		flex-direction: column;
		min-height: 100vh;
		justify-content: space-between;
		padding: calc(44px + var(--status-bar-height)) 0 30rpx;
		box-sizing: border-box;
	}
	.nav {
		width: 100%;
		position: fixed;
		top: 0;
		left: 0;
	}
	.cancel {
		display: flex;
		align-items: center;
		flex-direction: column;
		text {
			font-size: 28rpx;
			color: #656667;
			line-height: 40rpx;
			margin-top: 60rpx;
		}
	}
	
	.btn {
		display: flex;
		align-items: center;
		flex-direction: column;
		view {
			width: 690rpx;
			height: 88rpx;
			background: #3393FF;
			border-radius: 44rpx;
			font-size: 28rpx;
			color: #FFFFFF;
			line-height: 88rpx;
			text-align: center;
			margin-top: 10rpx;
		}
		text {
			font-size: 26rpx;
			color: #08090A;
			line-height: 37rpx;
			i {
				color: #046CC3;
				font-style: normal;
			}
		}
	}
</style>
